<?php

require_once('..\..\app\models\Economic.php');
require_once('..\..\app\models\conn.php');

	//get the q parameter from URL
	
	$id=$_GET["id"];
	$name=$_GET["name"];
	$year=$_GET["year"];
	$month=$_GET["month"];
	$value=$_GET["value"];
	$unit=$_GET["unit"];

	// $id=1;
	// $name=1;
	// $year=1;
	// $month=1;
	// $value=1;
	// $unit=1;
	
	$item = array("id"=>$id,"name"=>$name,"year"=>$year,"month"=>$month,
		"value"=>$value,"unit"=>$unit);
	$e1 = new Economic();
	$e1->update($item);
?>